FUNCTION
decimal.to_integer
function to_integer(): integerConvert this decimal to an integer, truncating the fractional part.
Numerically equivalent to decimal.floor(), but with a type conversion.
Throws
exception— if this decimal is greater thaninteger.MAX_VALUEor less thaninteger.MIN_VALUE.
Since
0.9.1
© 2026 Chromia